<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //es6引入rest参数，用来代替arguments


        function date(){
            console.log(arguments)
        }
        date('1','2','3')



        function date02(...arges){
            //参数变为一个数组，使得参数的可操作性变强
            console.log(arges)
        }

        date02(1,2,3,4,5)

        //rest参数必须要放到后面
        function date03(a,b,c,...args){
            console.log(args)
        }
        date03(1,2,3,4,5,6)

    </script>
    
</body>
</html>